import React from "react";
import lazyLoad from "@/routers/utils/lazyLoad";
import { LayoutIndex } from "@/routers/constant";
import { RouteObject } from "@/routers/interface";

// 商品管理模块
const OrderAdminRouter: Array<RouteObject> = [
	{
		element: <LayoutIndex />,
		path: "/OrderAdmin",
		meta: {
			title: "订单管理"
		},
		children: [
			{
				path: "/OrderAdmin/List",
				element: lazyLoad(React.lazy(() => import("@/views/orderAdmin/list/index"))),
				meta: {
					requiresAuth: true,
					title: "订单列表",
					key: "OrderAdminList"
				}
			},
			{
				path: "/OrderAdmin/Comment",
				element: lazyLoad(React.lazy(() => import("@/views/orderAdmin/comment/index"))),
				meta: {
					requiresAuth: true,
					title: "评价列表",
					key: "OrderAdminComment"
				}
			}
		]
	}
];

export default OrderAdminRouter;
